const getArr = (Enum: any) => {
	const arr = []
	for (const innertype in Enum) {
		arr.push(innertype)
	}
	return arr
}

// eslint-disable-next-line no-shadow
export enum userCheckTaskEnum {
	'待我审核' = 'mineCheckTask',
	'我发起的' = 'mineCopyTask',
	'我已审核' = 'mineSuccessCheckTask',
}
export const userCheckTaskArr: any[] = getArr(userCheckTaskEnum)

// eslint-disable-next-line no-shadow
export enum managementEnum {
	'租金逾期' = 'overdueRent',
	'违章较多' = 'moreViolations',
	'离线设备' = 'unlink',
	'围栏预警' = 'wring',
	'超保养' = 'upkeep',
	'超年检' = 'check',
	'高风险车辆' = 'highRiskCar',
}
export const managementArr: any[] = getArr(managementEnum)

export default {
	userCheckTaskEnum,
	userCheckTaskArr,
	managementEnum,
	managementArr,
}
